package org.JQbitorrentClinet.request.torrentmanagement;

import lombok.Builder;
import org.JQbitorrentClinet.utils.HttpClientProxyRequestType;
import org.JQbitorrentClinet.base.BasePostUrlEncodedParam;

@Builder
public class SetFilePriorityParam extends BasePostUrlEncodedParam {
    String hash;
    String[] id;
    Integer priority;

    public SetFilePriorityParam(String hash, String[] id, Integer priority) {
        this.hash = hash;
        this.id = id;
        this.priority = priority;
        requestType = HttpClientProxyRequestType.POSTURLENCODED;
    }

    @Override
    public String getApiUrl() {
        return "/api/v2/torrents/filePrio";
    }
}
